#include "erl_interface.h"
#include "ei.h"

int main() {
	ETERM *point;
	erl_init(NULL, 0);
	
	point = erl_format("{~a,~w}",
					"point",
					erl_format("[~i, ~i]", 123,456));
	
	erl_print_term(stdout, point);
	fprintf(stderr, "\n");
	
	erl_free_compound(point);
	
	return 0;
}
